Repository navigation
Conversation
…s it now d402901 made an open chat's mode menu list both modes as radio items, the other one tagged "New chat", in place of a "Start a new chat in … mode" item. The mode picker's own tests moved with it; the dashboard test that walks the same menu still looked for the old item and has failed on dev since.
|
@ybai08 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to This test-only update aligns the selector with the current menu while retaining its mode and prior-reply checks. No merge-blocking risk is identified. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review details
Pre-merge checks |
|
What
One test in
dashboard-page.test.tsxhas failed ondevsince d402901 (9 Oct): "opens a new chat in the mode picked in the composer, and offers an open chat's other mode as a new chat".That commit changed an open chat's mode menu: it lists both modes as radio items, with the other one tagged "New chat", where it used to show a separate "Start a new chat in … mode" item.
mode-picker.test.tsxwas updated with it. The dashboard test walks the same menu and still looked for the old item:It now clicks the
menuitemradionamed Agentic. What it asserts afterwards is unchanged: the composer is back on Agentic and the first chat's reply is gone, so a new chat was opened.No application code changes.
Why
The
Frontendstep of Desktop Tests is red ondev's own runs for this one test (37990857120 and 37994261233, both 9 Oct), so it is red on every pull request since.How to test
Run on macOS arm64, on
devat6b6e21d30, fromsurfsense_local/frontend.pnpm exec vitest run --environment jsdom src/features/dashboard/dashboard-page.test.tsxfails this test, 3 runs of 3 (33 passed, 1 failed). The whole suite: 793 passed, 1 failed.pnpm typecheck,pnpm lint: clean.prettier --checkon the file: clean.Not run: the backend suites (nothing there changes), and the app itself.
High-level PR Summary
This pull request fixes a failing test in
dashboard-page.test.tsxthat broke when the chat mode picker UI was changed from a separate "Start a new chat" menu item to radio buttons with a "New chat" tag. The test now clicks the correctmenuitemradioelement to match the updated UI, while keeping all assertions unchanged.⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
surfsense_local/frontend/src/features/dashboard/dashboard-page.test.tsxSummary by CodeRabbit